
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0.1 Transitional//EN"
" http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html" charset="UTF-8" >
    <title>My WebSocket</title>
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js" ></script>
    <script type="text/javascript" src="classpath://static/js/websocket.js"></script>
</head>
<body>
测试 WebSocket 站点
<br />
<input type="text" id="message"/>
<button onclick="sendMessag()">发送消息</button>
<button onclick="closeWebSocket()">关闭socket连接</button>
<div id="content"></div>
</body>
</html>